﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Tecnopez.Globals;

public partial class mailContacto : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string val = (string) Request["mail"];
        txtPara.Text = val;
        wzrMail.ActiveStepIndex = 0;
    }
    protected void FinishButton_Click(object sender, EventArgs e)
    {
        this.Dispose();
    }
    protected void StartNextButton_Click(object sender, EventArgs e)
    {
        if (Functions.SendMail(txtPara.Text, txtAsunto.Text, txtMensaje.Text, "TecnoPez"))
        {
            lblResultado.Text = "Se envio el mail correctamente";
        }
        else
        {
            lblResultado.Text = "No se envio el mail";
        }
        //wzrMail.MoveTo(wzrMail.WizardSteps[2]);
    }
}
